package org.chen.ly.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.chen.common.ctrip.entity.Product;
import org.chen.common.lytrip.crawler.CrawlResult;
import org.chen.common.lytrip.crawler.CrawlerExecutionResult;
import org.chen.common.lytrip.entity.LyProduct;

import java.util.List;

public interface LyProductService extends IService<LyProduct> {
    CrawlResult crawlProductsWithResult(String keyword, int pageIndex, Integer pageSize, Integer days, String departureCity);

    CrawlerExecutionResult crawlProductsRange(String keyword, int startPage, Integer endPageIndex, Integer pageSize, Integer days, String departureCity);

    List<Product> getUnfetchedDetailProducts();

    void fetchProductDetail(String id);
}
